package com.portal.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单实体类
 */
@TableName(value ="t_order")
@Data
public class Order implements Serializable {

    //使用手动输入做为主键
    @TableId(type = IdType.INPUT)
    private Long id;
    private String orderNum;
    private Double totalPrice;
    private Long userId;
    private Integer addressId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Integer state;
    private static final long serialVersionUID = 1L;
}